﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BW.Rabbit.ErrorCode
{
    /// <summary>
    /// API结果
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class APIResult<T> where T : class,new()
    {
        /// <summary>
        /// 状态码
        /// </summary>
        public EnumCode Code { get; set; }
        /// <summary>
        /// 消息
        /// </summary>
        public string Msg {  get; set; }
        /// <summary>
        /// 返回值
        /// </summary>
        public T Data { get; set; }
    }
}
